package org.hoyi.util;

import java.lang.reflect.Method;

/**
 * Author:ellen Email:ellen@kuaifish.com CreateDate:2015-05-20
 * ModifyDate:2015-06-20 hoyi entities @ hoyi.org 使用请在项目关于内标注hoyi版权，
 * hoyi版权归hoyi.org所有
 */
public class ReflectUtil {
	
	public static boolean ContainMethod(Method[] mds, String methodname) {
		Method[] arrayOfMethod = mds;
		int j = mds.length;
		for (int i = 0; i < j; i++) {
			Method method = arrayOfMethod[i];

			if (method.getName().equals(methodname)) {
				return true;
			}
			
		}
		return false;
	}
}
